package edu.uci.ics.ai.maze.utils;

public final class TimeUtils {

  private TimeUtils() { }

  private final static long NS_PER_MS = 1000000;

  /**
   * Converts nanoseconds to ms
   * @param ns the length of time in nanoseconds
   * @return the length of time in milliseconds
   */
  public static double nsToMs(long ns) {
    return ns / (double) NS_PER_MS;
  }
}
